"""ending_framework_api URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

# 总路由分发，导入include模块
from django.urls import include

# 开设media的接口访问该文件夹下的图片需要导入两个模块serve和settings
from django.views.static import serve
from django.conf import settings
from home import views
urlpatterns = [
    path('admin/', admin.site.urls),

    # # 路由分发
    #
    # path('api/v1/user/', include('hospital_backend.hospital_api.user.urls')),
    # path('api/v1/leaveplatform/', include('hospital_backend.hospital_api.leaveplatform.urls')),
    #
    # # path('api/v1/user/', include('user.urls')),
    # path('api/v1/registered/', include('hospital_backend.hospital_api.registered.urls')),
    # path('api/v1/order/', include('hospital_backend.hospital_api.order.urls')),
    # # path('api/v1/weichat/', include('hospital_backend.hospital_api.weichat.urls')),
    # path('api/v1/outpatient/', include('hospital_backend.hospital_api.outpatient.urls')),
    #
    #
    # # # 开设访问图片的接口
    # # static 默认开启的，后期咱们会开启media文件夹，除此之外的其它文件夹，尽量不要开放，让外部访问
    # path('media/<path:path>', serve, {'document_root': settings.MEDIA_ROOT}),
]
